package cn.hwadee.muying.mapper;

import cn.hwadee.muying.entity.Permission;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tony
 * @since 2018-04-17
 */
@Mapper
@Component(value = "permMapper")
public interface PermissionMapper extends BaseMapper<Permission> {

    List<Permission> selectSubperms(@Param("pid") Long pid) throws Exception;

}
